import type { Router } from 'uni-mini-router';
/**
 * 路由拦截
 * @param router
 */
function userRouternext(router: Router) {
	router.beforeEach((to, from, next) => {
		console.log(to);
		console.log(from);
		// next入参 false 以取消导航
		next();
	});
	router.afterEach((to, from) => {
		console.log(to);
		console.log(from);
	});
}
export default userRouternext;
